/*
 * 版权所有 (c) 2022-2099 TBIT。保留所有权利。
 */

package com.tbit.main.config.properties;

import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 定制品牌编号，用于做特殊处理
 *
 * @author <a href="mailto:li.yao@tbit.com.cn">yao</a>
 * @version 3.9.0
 * @since 2024/4/16 9:05
 */
@Component
@ConfigurationProperties(prefix = "account")
@RefreshScope
@Setter
public class AccountProperties {

    /**
     * 小红羚品牌编号
     */
    private AccountIds xhl = new AccountIds();

    @Setter
    static class AccountIds {
        private List<Integer> accountIds = new ArrayList<>();
    }

    public List<Integer> getXhlAccountIds() {
        return xhl.accountIds;
    }

}
